/*
 * @Author: your name
 * @Date: 2020-09-24 11:43:58
 * @LastEditTime: 2020-09-25 13:44:44
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \im.xuanma.cnd:\study\study2\vue-admin-template\src\api\background.js
 */
import request from '@/utils/request'

// 所有房间列表
export function checkIn_list(data) {
    return request({
        url: '/check_in/check_in_list',
        method: 'get',
        params: data
    })
}
// 办理入住/预定
export function checkIn_reservation(data) {
    return request({
        url: '/check_in/checkIn_reserve',
        method: 'post',
        data
    })
}
//处理预定
export function reserve(data) {
    return request({
        url: '/check_in/reserve',
        method: 'post',
        data
    })
}
//办理退房/换房
export function check_out(data) {
    return request({
        url: '/check_in/check_out',
        method: 'post',
        data
    })
}
// 清理脏房
export function clear_pigsty(data) {
    return request({
        url: '/check_in/clear_pigsty',
        method: 'post',
        data
    })
}

// 当前可用空房
export function vacant_room(data) {
    return request({
        url: '/check_in/vacant_room',
        method: 'post',
        data
    })
}

// 统计各种状态
export function statistics(data) {
    return request({
        url: '/check_in/statistics',
        method: 'get',
        data
    })
}

